
public class Remotecontrolmain
{
        public static void main(String[] argv)
        {
                SimpleRemoteControl remote = new SimpleRemoteControl();

                light light = new light();

                lightoncommand lightOn = new lightoncommand(light);

                remote.setCommand(lightOn);
                remote.buttonWasPressed();
        }
}
